mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-08 14:54:44 +00:00
work
This commit is contained in:
parent
473e57e225
commit
3d99e0f6de
5 changed files with 15 additions and 2 deletions
|
|
@ -26,6 +26,7 @@ var consoleNode, jQuery, msie,
|
||||||
angular = window['angular'] || (window['angular'] = {}),
|
angular = window['angular'] || (window['angular'] = {}),
|
||||||
angularValidator = angular['validator'] || (angular['validator'] = {}),
|
angularValidator = angular['validator'] || (angular['validator'] = {}),
|
||||||
angularFilter = angular['filter'] || (angular['filter'] = {}),
|
angularFilter = angular['filter'] || (angular['filter'] = {}),
|
||||||
|
angularFormater = angular['formater'] || (angular['formater'] = {}),
|
||||||
angularCallbacks = angular['callbacks'] || (angular['callbacks'] = {}),
|
angularCallbacks = angular['callbacks'] || (angular['callbacks'] = {}),
|
||||||
angularAlert = angular['alert'] || (angular['alert'] = function(){
|
angularAlert = angular['alert'] || (angular['alert'] = function(){
|
||||||
log(arguments); window.alert.apply(window, arguments);
|
log(arguments); window.alert.apply(window, arguments);
|
||||||
|
|
|
||||||
6
src/Formaters.js
Normal file
6
src/Formaters.js
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
|
||||||
|
extend(angularFormater, {
|
||||||
|
'noop':function(){
|
||||||
|
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
@ -95,7 +95,7 @@ Scope.prototype = {
|
||||||
},
|
},
|
||||||
|
|
||||||
eval: function(expressionText, context) {
|
eval: function(expressionText, context) {
|
||||||
log('Scope.eval', expressionText);
|
// log('Scope.eval', expressionText);
|
||||||
var expression = Scope.expressionCache[expressionText];
|
var expression = Scope.expressionCache[expressionText];
|
||||||
if (!expression) {
|
if (!expression) {
|
||||||
var parser = new Parser(expressionText);
|
var parser = new Parser(expressionText);
|
||||||
|
|
|
||||||
|
|
@ -204,7 +204,7 @@ ApiTest.prototype.testQuoteString = function(){
|
||||||
};
|
};
|
||||||
|
|
||||||
ApiTest.prototype.testQuoteStringBug = function(){
|
ApiTest.prototype.testQuoteStringBug = function(){
|
||||||
assertEquals(angular.String.quote('"7\\\\\\\"7"', "7\\\"7"));
|
assertEquals(angular.String.quote("7\\\"7"), '"7\\\\\\\"7"');
|
||||||
};
|
};
|
||||||
|
|
||||||
ApiTest.prototype.testQuoteUnicode = function(){
|
ApiTest.prototype.testQuoteUnicode = function(){
|
||||||
|
|
|
||||||
6
test/FormatersTest.js
Normal file
6
test/FormatersTest.js
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
TestCase("formaterTest", {
|
||||||
|
testNoop: function(){
|
||||||
|
assertEquals("abc", angular.formater.noop("abc"));
|
||||||
|
assertEquals("xyz", angular.formater.noop("abc", "xyz"));
|
||||||
|
}
|
||||||
|
});
|
||||||
Loading…
Reference in a new issue