Move Vue.filter definition to vue_common

This commit is contained in:
uu59 2014-06-05 15:04:26 +09:00
parent 7bb0f7e5be
commit fc36a941fa
3 changed files with 5 additions and 5 deletions

View File

@ -17,4 +17,5 @@
//= require sb-admin-v2/plugins/dataTables/dataTables.bootstrap
//= require bower/vue/dist/vue
//= require bower/es6-promise/promise
//= require vue_common
//= require_tree .

View File

@ -1,11 +1,6 @@
(function(){
"use strict";
// NOTE: should move to common space if this filter used another place
Vue.filter('to_json', function (value) {
return JSON.stringify(value);
})
$(function(){
if($('#chapter1').length === 0) return;

View File

@ -0,0 +1,4 @@
Vue.filter('to_json', function (value) {
return JSON.stringify(value);
})