From 5502bb09d52652f1ff16b8543320083afd245581 Mon Sep 17 00:00:00 2001 From: Evgeny Poberezkin Date: Mon, 2 Mar 2015 18:40:41 +0000 Subject: [PATCH] 0.2.1 milo.util.deprecate; deprecated methods will log error --- Gruntfile.js | 2 +- bower.json | 2 +- lib/components/ui/FoldTree.js | 4 +- lib/components/ui/RadioGroup.js | 4 +- lib/config.js | 3 +- lib/milo.js | 2 +- lib/util/component_name.js | 4 +- lib/util/deprecate.js | 32 +++ lib/util/index.js | 18 +- lib/util/request.js | 4 +- lib/util/storage/msg_src.js | 4 +- lib/util/{count.js => unique_id.js} | 0 lib/util/websocket/msg_src.js | 2 +- milo.bundle.js | 361 +++++++++++++++------------- milo.bundle.map | 284 +++++++++++----------- milo.min.js | 8 + milo.min.js.map | 1 + package.json | 16 +- test_browser/util/request_test.js | 4 +- 19 files changed, 428 insertions(+), 327 deletions(-) create mode 100644 lib/util/deprecate.js rename lib/util/{count.js => unique_id.js} (100%) create mode 100644 milo.min.js create mode 100644 milo.min.js.map diff --git a/Gruntfile.js b/Gruntfile.js index 46406f4..a403750 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -112,7 +112,7 @@ module.exports = function(grunt) { grunt.registerTask('karmatest', 'karma'); grunt.registerTask('htmltest', ['browserify:test1', 'watch']); grunt.registerTask('tests', ['mochaTest', 'browserify', 'karmatest']); - grunt.registerTask('default', ['test', 'browserify', 'exorcise', 'watch']); + grunt.registerTask('default', ['test', 'browserify', 'uglify', 'exorcise', 'watch']); grunt.registerTask('skiptest', ['browserify', 'watch']); }; diff --git a/bower.json b/bower.json index 2b7b6a9..b8a4ad6 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "milo", - "version": "0.2.0", + "version": "0.2.1", "homepage": "https://github.com/milojs/milo", "authors": [ "MOL Technical " diff --git a/lib/components/ui/FoldTree.js b/lib/components/ui/FoldTree.js index 90c37b0..0014747 100644 --- a/lib/components/ui/FoldTree.js +++ b/lib/components/ui/FoldTree.js @@ -3,7 +3,7 @@ var doT = require('milo-core').util.doT , componentsRegistry = require('../c_registry') , Component = require('../c_class') - , miloCount = require('../../util/count'); + , uniqueId = require('../../util/unique_id'); var TREE_TEMPLATE = '