CARVIEW |
Select Language
HTTP/2 200
date: Thu, 31 Jul 2025 12:38:03 GMT
content-type: text/html; charset=utf-8
vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, X-Requested-With,Accept-Encoding, Accept, X-Requested-With
etag: W/"d833f82fc9ceb5aac459f959a71da1fe"
cache-control: max-age=0, private, must-revalidate
strict-transport-security: max-age=31536000; includeSubdomains; preload
x-frame-options: deny
x-content-type-options: nosniff
x-xss-protection: 0
referrer-policy: no-referrer-when-downgrade
content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com wss://alive-staging.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
server: github.com
content-encoding: gzip
accept-ranges: bytes
set-cookie: _gh_sess=88U%2FYIh6sXF714kMLCvQwDh61QS1Z6WQg43t9c0sYsjNb11l0QPAb0yei9rue5%2BAYMJcjEIn5OkLfJ5vJ6BGfhTiADBX9A7%2FhW02Tv5W%2F3QG1uCXKO2OB4urPDJGPIKI1uQCxQsnb%2F1RNghgD5u%2Be8Zmebxd0eR9f0FP0dQCSJoFr2aCw7u0VSDpu4M509oDZtB1at15h4wFSTXDU2mvrm4rr58IExCn%2BPCodJF29V0ZzzbDoTl4C3wq%2FwCbs%2FMCKVg74LWT2oKQlcBvM3eSeQ%3D%3D--1rG6jMzNGfi2%2BjMo--Ldnm3EdEG%2B7N9R5aH7thXA%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
set-cookie: _octo=GH1.1.832903176.1753965483; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 12:38:03 GMT; Secure; SameSite=Lax
set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Fri, 31 Jul 2026 12:38:03 GMT; HttpOnly; Secure; SameSite=Lax
x-github-request-id: D6FA:FA5FC:A37C60:C2223E:688B63AB
Upgrade from 1.2 to 1.3 or 1.4 · mootools/mootools-core Wiki · GitHub
Skip to content
Navigation Menu
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 510
Upgrade from 1.2 to 1.3 or 1.4
arian edited this page Jun 13, 2012
·
1 revision
This is a list of the API changes made from 1.2 to 1.3. It allows you to drop the compatibility layer mostly by doing search and replace. If you just want to update to MooTools Core 1.3 with your existing code, see Update from 1.2 to 1.3.
- $chk(value) => (value != null)
- $A(item) => Array.from(item) // Note: Array.from does not always return a new array but just ensures that the return value is an array.
- $splat => Array.from
- $clear => use the native clearTimeout when using fn.delay, use clearInterval when using fn.periodical.
- $defined => (value != null)
- $each => use Array.each for arrays, Object.each for objects
- $empty => No replacement, use function(){}
- $extend(source, extended) => Object.append(source, extended)
- $merge(a, b) => Object.merge({}, a, b)
- $mixin(a, b) => Object.merge(a, b)
- $lambda => Function.from
- $random => Number.random
- $time => Date.now
- $type => typeOf // Note: returns a string 'null' on empty objects as opposed to "false" in 1.2
- $unlink => Array.clone or Object.clone
- $arguments => No replacement
- Native => Type (see Core.js)
- Array.type / String.type / Number.type / … => Type.isArray / Type.isString / Type.isNumber / …
- Hash and $H were deprecated and moved from Core to More. Use plain objects instead of Hash. You can find methods to manipulate objects on Object. You can find all 1.2 functionality of Hash in MooTools More 1.3.
Engine detection was changed in favor of user-agent detection. Browser.Engine was deprecated and according properties on the Browser object were added:
- Browser.Engine.trident => Browser.ie
- Browser.Engine.gecko => Browser.firefox
- Browser.Engine.webkit => Browser.safari or Browser.chrome
- Browser.Engine.presto => Browser.opera
- Browser.Platform.ipod => Browser.Platform.ios
- $exec => Browser.exec
- $pick => Array.pick or [a, b, c].pick()
- Array.extend => Array.append
- $try => Function.attempt
- myFn.run(args, bind) => myFn.apply(bind, Array.from(args));
- myFn.create => Use the according functions like .pass, .bind, .delay, .periodical
- myFn.bindWithEvent => deprecated
- myFn.bind(this, [arg1, arg2, arg3]) => myFn.bind(this, arg1, arg2, arg3) OR myFn.pass([arg1, arg2, arg3], this)
- element.injectInside, .injectBefore, .injectAfter, .injectBottom, .injectTop => element.inject(context, where); // where = inside, bottom, …
- element.grabTop, … => element.grab(context, where) // see above
- element.hasChild(item) => item !== element && element.contains(item)
- $$ now only accepts a single selector, an array or arguments of elements
- Selectors.Pseudo => Slick.definePseudo(name, fn)
- Event => DOMEvent
- Event.Keys.foo = 49 => DOMEvent.defineKeys(49, 'foo');
Clone this wiki locally
You can’t perform that action at this time.