mirror of
https://github.com/kennethreitz-archive/kJS.tmbundle.git
synced 2026-06-05 23:50:19 +00:00
Reorganize the JavaScript Basic syntax. Moved everything into the repository.
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,3 +1,18 @@
|
||||
// Root
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// =============
|
||||
// = FUNCTIONS =
|
||||
// =============
|
||||
@@ -31,6 +46,17 @@ var funkName=new Function("argument1", "argument2", "return argument1 + argument
|
||||
var funkName1 = function funkName (argument1, argument2) {return argument1 + argument1;};
|
||||
var funkName1=function funkName(argument1,argument2){return argument1 + argument1;};
|
||||
|
||||
function myFunc(argument1, argument2){}
|
||||
|
||||
Sound.prototype = {}
|
||||
Sound.prototype.play = function(){}
|
||||
Sound.prototype.play = myfunc
|
||||
Sound.play = function(){}
|
||||
var objectName = {
|
||||
foobar: function(){},
|
||||
'foo': function(){},
|
||||
"foo": function(){}
|
||||
}
|
||||
|
||||
// ===================
|
||||
// = OBJECT LITERALS =
|
||||
|
||||
Reference in New Issue
Block a user